package com.AEWMS.Test;

import com.AEWMS.Dao.Major;
import com.AEWMS.Service.MajorService;
import com.alibaba.fastjson.JSON;

public class MajorTest {
    public static void main(String[] args) {
        MajorService ms = new MajorService();
        Major m = new Major();
//        System.out.println(JSON.toJSONString(ms.findAllMajor()));
//        System.out.println(JSON.toJSONString(ms.findMajorById("1")));
//        m.setMajorId(2);
//        m.setMajorName("计算机科学与技术");
//        m.setCollegeId("1");
//        System.out.println(JSON.toJSONString(ms.updateMajor(m)));
        System.out.println(JSON.toJSONString(ms.deleteMajorById("2")));
    }
}
